﻿<local:DocumentBase x:Class="WPFExcelReport.GB03GB"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:ReflectionStudio.Core.Database;assembly=ReflectionStudio.Core"
        xmlns:wep="clr-namespace:WPFExcelReport"
       Height="700" Width="1024" 
          
        Title="采购单浏览"  
     >
    <local:DocumentBase.Resources>
        <db:INTEXDataSet x:Key="iNTEXDataSet" />
    </local:DocumentBase.Resources>
    <Grid DataContext="" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="120"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0">
            <Button Content="查询" Height="25" HorizontalAlignment="Left" Margin="11,17,0,0" Name="btnQuery"
                        Click ="btnQuery_Click" VerticalAlignment="Top" Width="106" />
            <Button Content="产生报表" Height="25" HorizontalAlignment="Left" Margin="11,17,0,0" Name="btnReport"
                        Click ="btnReport_Click" VerticalAlignment="Top" Width="106" />
        </WrapPanel>
        <GroupBox Grid.Row="1"
            Header="采购原料报表" Height="100" HorizontalAlignment="Stretch" Name="groupBox1" VerticalAlignment="Top"
                  Margin="10,5,5,10"
                  Background="Goldenrod">
            <Grid Height="Auto" HorizontalAlignment="Stretch" > 
            </Grid>
        </GroupBox>
        <fd:FilteringDataGrid Grid.Row="2"
            AutoGenerateColumns="False" EnableRowVirtualization="True"  
                                             ItemsSource="{Binding Path=YARN_INVENTORY}"
                                              x:Name="MasterData" 
                                                 CanUserReorderColumns="True"  
                                             CanUserResizeRows="True"
                                              CanUserSortColumns="True"
                                              IsFilteringCaseSensitive="False" 
                                              RowDetailsVisibilityMode="VisibleWhenSelected"   
                                              Width="1000"
                                              Height="600"
                                              EnableColumnVirtualization="True"  
                                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                                              SelectionChanged="ItemsControls_SelectionChanged"
                                              >
            <DataGrid.Columns>
                <!--ABPAUFKRS;ABPAUFLFD;ABPAUFPOS;ABPART;ABPVAR;FACTORY;COLOR;ABPFARBE;QUANTITY;ABPSTARTDAT;ABPENDDAT;ACTENDDATE;-->
                <!--汇隆号	纱线编号	变量	纱线支数	供应商名称	供应商纺批	缸号	重量-->
                <DataGridTextColumn Binding="{Binding Path=GPEINDAT}" Header="入库日期" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=CODE}" Header="汇隆号" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=GLLB}" Header="库区" Width="SizeToCells" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=GLLP}" Header="库位" Width="SizeToCells" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=ART}" Header="纱线编号" Width="SizeToCells" MinWidth="100" />
                <DataGridTextColumn Binding="{Binding Path=VAR}" Header="变量" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=BEZ}" Header="纱线支数" Width="SizeToCells" MinWidth="100" />
                <DataGridTextColumn Binding="{Binding Path=COLOR}" Header="颜色" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=SUPPLIER}" Header="供应商名称" Width="SizeToCells" MinWidth="120" />
                <DataGridTextColumn Binding="{Binding Path=SUPPLIERBATCH}" Header="供应商纺批" Width="SizeToCells" MinWidth="100" />
                <DataGridTextColumn Binding="{Binding Path=LOT}" Header="缸号" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=WEI}" Header="重量" Width="SizeToCells" MinWidth="60" /> 
            </DataGrid.Columns>
        </fd:FilteringDataGrid>
    </Grid>
</local:DocumentBase > 